\begin{tikzpicture}[>=Stealth, scale=0.7]
    \draw [->] (-4, 0) -- (4, 0) node[anchor=north] {$x$};
    \draw [->] (0, -3) -- (0, 3) node[anchor=east] {$y$};
    \filldraw [fill=black] (0, 0) circle (0.05) node [anchor=south west] {\small $O(0, 0)$};
    \foreach \x in {-2, -1, 1, 2, 3} {
        \draw (\x, 0.2) -- (\x, 0) node[anchor=north] {\small $\x$};
    }
    \foreach \x in {-3} {
        \draw (\x, 0) -- (\x, 0.2) node[anchor=south] {\small $\x$};
    }
    \foreach \y in {-1, 1, 2} {
        \draw (0.2, \y) -- (0, \y) node[anchor=east] {\small $\y$};
    }
    \foreach \y in {-2} {
        \draw (0, \y) -- (0.2, \y) node[anchor=west] {\small $\y$};
    }

    \filldraw [dashed, fill=black] (-3, 0) -- (-3, -2) circle (0.05) node[anchor=north] {\small $A(-3, -2)$} -- (0, -2);
    \filldraw [dashed, fill=black] (3, 0) -- (3, 2) circle (0.05) node[anchor=south] {\small $B(3, 2)$} -- (0, 2);
    \filldraw [dashed, fill=black] (2.5, 0) -- (2.5, -1) circle (0.05) node[anchor=north] {\small $C(2.5, -1)$} -- (0, -1);
    \filldraw [fill=black] (-2, 0) circle (0.05)  +(0.7, 0) node [anchor=south] {\small $D(-2, 0)$};
\end{tikzpicture}

